package com.woniuxy.products.service;

import com.woniuxy.commons.entity.PageBean;
import com.woniuxy.commons.entity.Products;
import com.woniuxy.commons.utils.ResponseResult;
import com.woniuxy.products.entity.ProductsAndRateAndRepayment;
import org.apache.ibatis.annotations.Param;

/**
 * @author author
 * @create 2021-11-16 14:58
 */
public interface ProductsService {

    boolean addProducts(Products products);

    //分页查询：查询所有用户和用户详情表单

    ResponseResult<PageBean<Products>> selectProductsByPage(@Param("productsAndRateAndRepayment") ProductsAndRateAndRepayment productsAndRateAndRepayment, @Param("pageIndex") int pageIndex,
                                                            @Param("pageSize") int pageSize);

    //修改表中数据
    void updateProductsService(Products products);

    //根据id删除表中数据
    void deleteByPidService(String pid);
}
